package com.aiden.rxjavatest;

import com.aiden.rxjavatest.annotation.Sign;
import com.aiden.rxjavatest.annotation.SingleByActivity;
import com.aiden.rxjavatest.bean.User;

import dagger.Module;
import dagger.Provides;

@Module
public class UserModule {

    @Sign("james")
    @Provides
    public String provideName() {
        return "james Harden";
    }
    @SingleByActivity
    @Sign("stephen")
    @Provides
    public User provideUser(@Sign("james") String name) {
        return new User(name);
    }

}
